package com.lianqi.emcpframework.dataaccess;

import com.lianqi.emcpframework.core.dict.EnumDict;
import com.lianqi.emcpframework.core.dict.annotation.Dict;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @program emcp-portal
 * @description: 数据访问限制类型
 * @author: sky
 * @create: 2019/05/27 16:56
 */
@Getter
@AllArgsConstructor
@Dict(id = "OperationType")
public enum OperationType implements EnumDict<String> {

    create("create","新增","数据操作限定-新增"),
    delete("delete","删除","数据操作限定-删除"),
    update("update","修改","数据操作限定-修改"),
    query("query","查询","数据操作限定-查询"),
    view("view","查看详情","数据操作限定-查看详情"),
    data_import("import","数据导入","数据操作限定-数据导入"),
    data_export("export","数据导出","数据操作限定-数据导出"),
    enable("enable","开启、生效","数据操作限定-开启、生效"),
    disable("disable","关闭、失效","数据操作限定-关闭、失效");

    private String value;

    private String text;

    private String comments;
}
